import api from './api';

// 风水分析
export const fengshuiAnalysis = async (data: {
  houseType: string;
  direction: string;
  floor?: number;
  area?: number;
  roomCount?: number;
  description?: string;
}) => {
  return api.post('/fengshui/analysis', data);
};

// 获取风水详细分析（付费内容）
export const getFengshuiDetail = async (fengshuiId: string) => {
  return api.get(`/fengshui/analysis/${fengshuiId}/detail`);
};

// 获取用户的风水记录列表
export const getUserFengshuiRecords = async (params: {
  page?: number;
  per_page?: number;
}) => {
  return api.get('/fengshui/records', { params });
};
